.start-page
  .mtime-box.small-12
    .bd
      ul
        - @aps1.each_with_index do |slide,index|
          li style="background-image: url(#{slide.image})"
            .m-width
              a href="#"
                img src="uploads/slide/slide.png"
    .mtime-btn.small-12
      a class="prev" href="javascript:;"
      a class="next" href="javascript:;"
      .hd
        ul

  script src="/uploads/js/jquery.SuperSlide.2.1.1.js?body=1"
  script src="/uploads/js/slide.js?body=1"

  .start-projects-content
    .row
      .small-12.columns
        h2 热门项目
        ul.small-block-grid-1.medium-block-grid-2.large-block-grid-4
          - 8.times do |i|
            - project = @hot_project[i]
            - if project.present?
              - info = project.money_requires
              li
                .box.project
                  .head
                    .row
                      .columns
                        = link_to project do
                          - image_tag project.logo.image_url
                    h3
                      = link_to project do
                        | #{project.name}
                    .subtitle #{project.oneword}
                  .content
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 计划融资
                        .small-6.columns
                          .item.right
                            | #{info.money}
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 出让股份
                        .small-6.columns
                          .item.right
                            | #{info.share}%
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 预期收益比
                        .small-6.columns
                          .item.right
                            - if (info.profit)
                              | #{info.profit}%
                            - else
                              | 无
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 融资进度
                        .small-6.columns
                          .item.right
                            | #{(info.progress * 100).to_i}%
                    .tag
                      .row
                        .progress
                          span.meter style="width: #{info.progress * 100}%"
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 剩余天数
                        .small-6.columns
                          .item.right
                            | #{info.left}天
                    .tag
                      .row
                        .progress
                          span.meter style="width: #{info.time_progress * 100}%"
        .text-center.mb20
          = link_to '查看所有热门项目', explore_index_path
  .start-content.aps2
    .small-12.columns
      - if !@aps2.blank?
        ul
          li style="background-image: url(#{@aps2.image});"
            .m-width
              a href="#"
                img src="uploads/slide/slide.png"

  .start-projects-content
    .row
      .small-12.columns
        h2 预热项目
        ul.small-block-grid-1.medium-block-grid-2.large-block-grid-4
          - 8.times do |i|
            - project = @new_project[i]
            - if project.present?
              - info = project.money_requires
              li
                .box.project
                  .head
                    .row
                      .columns
                        = link_to project do
                          - image_tag project.logo.image_url
                    h3
                      = link_to project do
                        | #{project.name}
                    .subtitle #{project.oneword}
                  .content
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 计划融资
                        .small-6.columns
                          .item.right
                            | #{info.money}
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 出让股份
                        .small-6.columns
                          .item.right
                            | #{info.share}%
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 预期收益比
                        .small-6.columns
                          .item.right
                            - if (info.profit)
                              | #{info.profit}%
                            - else
                              | 无
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 众筹开始时间
                        .small-6.columns
                          .item.right
                            - if (info.start_time.to_s != '')
                              | #{DateTime.parse(info.start_time.to_s).strftime('%Y-%m-%d').to_s}
                            - else
                              | 无
        .text-center.mb20
          = link_to '查看所有预热项目', ready_explore_index_path
  .start-content.aps2
    .small-12.columns
      - if !@aps3.blank?
        ul
          li style="background-image: url(#{@aps3.image});"
            .m-width
              a href="#"
                img src="uploads/slide/slide.png"

  .start-projects-content
    .row
      .small-12.columns
        h2 成功项目
        ul.small-block-grid-1.medium-block-grid-2.large-block-grid-4
          - 3.times do |i|
            - project = @ok_project[i]
            - if project.present?
              - info = project.money_requires
              li
                .box.project
                  .head
                    .row
                      .columns
                        = link_to project do
                          - image_tag project.logo.image_url
                    h3
                      = link_to project do
                        | #{project.name}
                    .subtitle #{project.oneword}
                  .content
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 领投人
                        .small-6.columns
                          .item.right
                            = link_to info.leader.name, info.leader
                    .tag
                      .row
                        .small-6.columns
                          .type
                            | 融资进度
                        .small-6.columns
                          .item.right
                            | 100%
                    .tag
                      .row
                        .progress
                          span.meter style="width: 100%"
        .text-center
          = link_to '查看所有成功项目', all_explore_index_path
  hr
